package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.CourseUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 最爱喝兽奶
 * @create 2022/9/15
 **/
public interface CourseUserMapper extends BaseMapper<CourseUser> {

    /**
     * 根据传入的课程id，查询出所有的用户id
     * @param courseId
     * @return
     */
    List<String> selectUserIdsByCourse(@Param("courseId") String courseId);
}
